def if_stmt2(x):
if x > 10:
return x + 5
else:
return x
| Function Call | Return Value | |||
|---|---|---|---|---|
| if_stmt2(5) | → | |||
| if_stmt2(15) | → | |||
| if_stmt2(0) | → | |||
| if_stmt2(10) | → | |||
| if_stmt2(13) | → | |||
| if_stmt2(20) | → | |||
| if_stmt2(3) | → | |||
Experiment with this code on Gitpod.io